package com.ts.main.admin.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author:lk
 * @Date: 2025/6/9  14:44
 */
@Data
public class AdminDto implements Serializable {

    @Schema(description = "ID,修改时必传")
    private Integer id;

    @Schema(description = "角色ID",requiredMode = Schema.RequiredMode.REQUIRED)
    private Integer roleId;

    @NotNull(message = "账号不为空")
    @Schema(description = "账号",requiredMode = Schema.RequiredMode.REQUIRED)
    private String account;

    @Schema(description = "用户名",requiredMode = Schema.RequiredMode.REQUIRED)
    private String userName;

    @Schema(description = "密码,添加时不传（默认密码）")
    private String password;

    @Schema(description = "电话")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "头像")
    private String headImage;

    @Schema(description = "是否第一次登录(true需修改密码),不传",requiredMode = Schema.RequiredMode.NOT_REQUIRED)
    private Boolean restPassword;

    @Schema(description = "是否禁止登录,添加时不传")
    private Boolean isBlocked;

}
